package com.cctc.rds.raft.core.rpc.election;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Raft 竞选请求消息。
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ElectionRpcRequest {
    // 竞选节点 ID
    private int nodeId;
    // 竞选节点任期号
    private long term;
    // 竞选节点最新提交日志索引
    private long lastCommitLogIndex;
    // 竞选节点最新提交日志的任期号
    private long lastCommitLogTerm;
}
